<?php header("Content-type: text/css");?>

<?php
    include_once('../library/database/database.php');
    $aSettings = database::getListSettings('theme');
    $sHeaderMenuColor = $aSettings['default_menu_color']['setting_value'];
    $sMainMenuColor = $aSettings['default_main_menu_color']['setting_value'];
    if(isset($_GET['category']))
    {
        if(isset($aSettings[$_GET['category'].'_menu_color']))
        {
            $sHeaderMenuColor = $aSettings[$_GET['category'].'_menu_color']['setting_value'];
        }
        if(isset($aSettings[$_GET['category'].'_main_menu_color']))
        {
            $sMainMenuColor = $aSettings[$_GET['category'].'_main_menu_color']['setting_value'];
        }
    }
?>

#admin_header{
    background-color: <?php echo $sHeaderMenuColor; ?>;
}
.message_title {
    background-color: <?php echo $sHeaderMenuColor; ?>;
}
.main_menu_bar{
    background-color: <?php echo $sMainMenuColor; ?>;
}